
import { createVisualEditorConfig } from "./packages/visual-editor.utils";

import { ElButton } from 'element-plus'

const visualConfig = createVisualEditorConfig()

visualConfig.registry('text', {
    label: '文本',
    preview: () => '预览文本',
    render: () => '渲染文本'
})

visualConfig.registry('button', {
    label: '按钮',
    preview: () => <ElButton>按钮预览</ElButton>,
    render: () => <ElButton>按钮预览</ElButton>
})

visualConfig.registry('input', {
    label: '输入框',
    preview: () => '预览文本',
    render: () => '渲染文本'
})